package com.zmn.oms.common.dro.part;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @ClassName OrderPartDIO
 * @description:
 * @author: wangyanci
 * @create: 2022-04-23 14:10
 * @Version 1.0
 **/
@Data
@ToString
public class OrderPartDIO implements Serializable {

    /**
     * 配件id
     */
    @ApiModelProperty(value = "配件id")
    @NotNull(message = "配件id不能为空")
    private String partId;

    /**
     * 配件价格
     */
    @ApiModelProperty(value = "配件价格")
    @NotNull(message = "配件价格不能为空")
    private Integer price;

    /**
     * 配件数量
     */
    @ApiModelProperty(value = "配件数量")
    @NotNull(message = "配件数量不能为空")
    private BigDecimal num;

}